#! /usr/bin/env python
# -*- coding: utf-8 -*-
# Author: Wjy

from core.utils import Response


class Operation(object):

    def __init__(self):
        """
        verify_list: 校验流程
        work_list: 执行流程
        """
        self.verify_list = []
        self.work_list = []
        self.reload_verify_list = None
        self.error_info = "错误信息"
        self.error_code = "错误码"
        self.logger = None
        self.response = Response()

    def head(self, data):
        pass

    def biz(self, data):
        pass

    def start(self):
        pass

    # 其他流程可用
    # def response(self):
    #     pass

    def set_log(self, log):
        self.logger = log
